package com.spring;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class test {
	public static void main(String[] args) {
		//Spring 容器 实例化
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
		//注册实例
		context.register(Student.class);
		//刷新
		context.refresh();
		//Spring 容器 初始化
		System.out.println(context.getBean(Student.class));

	}

}
